@import '../../../../style/theme/color';
@import '../../../../style/theme/corner';

svg.svg-icon-arrow > g > polygon {
  fill: $devui-icon-text;
}

:host ::ng-deep d-button button.d-btn.d-btn-icon {
  padding: 0 !important;
}

:host.editable-cell {
  position: relative;

  &:hover::after {
    content: '';
    display: block;
    width: calc(100% - 32px);
    position: absolute;
    height: calc(100% - 14px);
    border: 1px solid $devui-line;
    left: 12px;
    top: 8px;
    border-radius: $devui-border-radius;
    pointer-events: none;
  }
}

.cell-modify {
  position: absolute;
  right: 0;
  cursor: pointer;

  & > svg {
    vertical-align: middle;
  }

  &:hover > svg > g > g {
    fill: $devui-icon-text;
  }
}

.cell-placeholder {
  display: inline-block;
  height: 16px;
}

.cell-container {
  position: relative;
  height: 24px;
}

.cell-container-inner {
  position: absolute;
  max-width: 100%;
  width: 100%;
  min-height: 24px;

  &.modify-holder {
    padding-right: 20px;

    & .cell-modify {
      display: none;
      cursor: pointer;
      position: absolute;
      right: 0;

      & > svg {
        vertical-align: middle;

        & > g {
          fill: $devui-icon-text;
        }
      }

      &:hover > svg > g {
        fill: $devui-icon-fill-active-hover;
      }
    }

    &:hover .cell-modify {
      display: inline;
    }
  }
}

.not-break {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  word-spacing: normal;
  word-wrap: normal;
}

.cell-editable {
  cursor: pointer;
  margin-left: -5px;
  padding-left: 5px;
  min-height: 20px;

  &:hover {
    background: $devui-list-item-hover-bg;
  }
}

.cell-placeholder {
  display: inline-block;
  height: 16px;
}
